package dk.twu.analyzer.console.model;

import dk.twu.analyzer.model.Exchange;

/**
 * Created by TW on 12/26/2014.
 */
public class ExchangeElement implements ICommandElement {
    private final Exchange exchange;

    public ExchangeElement(Exchange exchange) {
        this.exchange = exchange;
    }

    @Override
    public String getShortDescription() {
        if (exchange == null) {
            return "N/A";
        }
        return exchange.getCode();
    }
}
